﻿
namespace Cos.Module.CMS.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class PartCultureDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapPartCultureDataModel()
        {
            new PersistenceSpecification<PartCultureDataModel>(Session)
               .CheckProperty(x => x.CultureCode, this.Culture.Id)
               .CheckProperty(x => x.DisplayName, "None")
               .CheckProperty(x => x.PartId, this.Part.Id)
                .VerifyTheMappings();
        }
    }
}
